package top.milkbox.sys.modular.role.mapStruct;

import org.mapstruct.Mapper;
import top.milkbox.sys.modular.role.entity.SysRoleEntity;
import top.milkbox.sys.modular.role.param.SysRoleAddParam;
import top.milkbox.sys.modular.role.param.SysRoleEditParam;
import top.milkbox.sys.modular.role.vo.SysRoleVo;

/**
 * SysRole相关的实体类之间的转换<br />
 * 此接口由MapStruct在编译时生成实现代码，详细解释请看readme<br />
 *
 * @author milkbox
 * @date 2024-11-19
 */
@Mapper
public interface SysRoleMapStruct {

    /**
     * entity转vo
     */
    SysRoleVo entityToVo(SysRoleEntity entity);

    /**
     * addParam转entity
     */
    SysRoleEntity addParamToEntity(SysRoleAddParam addParam);

    /**
     * editParam转entity
     */
    SysRoleEntity editParamToEntity(SysRoleEditParam editParam);

}